package com.gitee.dgwcode.action;

import com.opensymphony.xwork2.ActionSupport;

public class Product extends ActionSupport {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2622856651962303093L;

	private String productname;
	
	private String producttype;
	
	private String productprice;

	public String getProductname() {
		return productname;
	}

	public void setProductname(String productname) {
		this.productname = productname;
	}

	public String getProducttype() {
		return producttype;
	}

	public void setProducttype(String producttype) {
		this.producttype = producttype;
	}

	public String getProductprice() {
		return productprice;
	}

	public void setProductprice(String productprice) {
		this.productprice = productprice;
	}

	@Override
	public String toString() {
		return "Product [productname=" + productname + ", producttype=" + producttype + ", productprice=" + productprice
				+ "]";
	}
	
	public String save() {
		System.out.println("print:"+this);
		return "success";
	}

}
